package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_WanliCurrencyExchangeItem", catalog="Id")
public class TcwWanliCurrencyExchangeItem extends BaseEntity<TcwWanliCurrencyExchangeItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="CurrencyExchangeBid", nameJava="currencyExchangeBid", typeDataBase="varchar")
	private String currencyExchangeBid;
	@YsField(nameDataBase="HcCurrency", nameJava="hcCurrency", typeDataBase="varchar")
	private String hcCurrency;
	@YsField(nameDataBase="HcAmount", nameJava="hcAmount", typeDataBase="decimal")
	private BigDecimal hcAmount;
	@YsField(nameDataBase="HrCurrency", nameJava="hrCurrency", typeDataBase="varchar")
	private String hrCurrency;
	@YsField(nameDataBase="HrAmount", nameJava="hrAmount", typeDataBase="decimal")
	private BigDecimal hrAmount;
	@YsField(nameDataBase="ExchangeRate", nameJava="exchangeRate", typeDataBase="decimal")
	private BigDecimal exchangeRate;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwWanliCurrencyExchangeItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCurrencyExchangeBid() {
		return currencyExchangeBid;
	}
	public TcwWanliCurrencyExchangeItem setCurrencyExchangeBid(String currencyExchangeBid) {
		this.currencyExchangeBid = currencyExchangeBid;
		return this;
	}
	public String getHcCurrency() {
		return hcCurrency;
	}
	public TcwWanliCurrencyExchangeItem setHcCurrency(String hcCurrency) {
		this.hcCurrency = hcCurrency;
		return this;
	}
	public BigDecimal getHcAmount() {
		return hcAmount;
	}
	public TcwWanliCurrencyExchangeItem setHcAmount(BigDecimal hcAmount) {
		this.hcAmount = hcAmount;
		return this;
	}
	public String getHrCurrency() {
		return hrCurrency;
	}
	public TcwWanliCurrencyExchangeItem setHrCurrency(String hrCurrency) {
		this.hrCurrency = hrCurrency;
		return this;
	}
	public BigDecimal getHrAmount() {
		return hrAmount;
	}
	public TcwWanliCurrencyExchangeItem setHrAmount(BigDecimal hrAmount) {
		this.hrAmount = hrAmount;
		return this;
	}
	public BigDecimal getExchangeRate() {
		return exchangeRate;
	}
	public TcwWanliCurrencyExchangeItem setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwWanliCurrencyExchangeItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwWanliCurrencyExchangeItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwWanliCurrencyExchangeItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwWanliCurrencyExchangeItem tcwWanliCurrencyExchangeItem(
		String currencyExchangeBid,
		String hcCurrency,
		BigDecimal hcAmount,
		String hrCurrency,
		BigDecimal hrAmount,
		BigDecimal exchangeRate,
		Integer status
			) {
		TcwWanliCurrencyExchangeItem entity = new TcwWanliCurrencyExchangeItem();
		entity.setCurrencyExchangeBid(currencyExchangeBid);
		entity.setHcCurrency(hcCurrency);
		entity.setHcAmount(hcAmount);
		entity.setHrCurrency(hrCurrency);
		entity.setHrAmount(hrAmount);
		entity.setExchangeRate(exchangeRate);
		entity.setStatus(status);
		return entity;
	}
}